package com.jsy.mini12306.ticketsales.mapper;

import com.jsy.mini12306.common.entity.SeatType;
import com.jsy.mini12306.common.entity.TrainStationSeatStatus;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.time.LocalDate;
import java.util.List;

/**
 * 列车在某个一个站点的座位的可用情况，是一个位图结构(TrainStationSeatStatus)表数据库访问层
 *
 * @author: SongyangJi
 * @since: 2021-09-02 01:21:36
 * @description:
 */
@Mapper
@Repository
public interface TrainStationSeatStatusMapper extends BaseMapper<TrainStationSeatStatus> {

    List<TrainStationSeatStatus> selectWithXLock(int trainId, LocalDate workingDate, SeatType type, List<Integer> stationIds);

}
